Set theory

Introduction to Set Theory

Basic Definitions

Set, Element, Subset

Example:
Let A={1,2,3} and B={1,2,3,4,5}. Since every element of A is also in B, we say A is a subset of B: AB.

Empty Set

={}

Universal Set


Set Notation

Roster Notation

Set-Builder Notation


Membership and Inclusion

Membership

aA

If a does not belong to A, we write:

aA

Subset and Inclusion

AB

Example:
If A={1,2} and B={1,2,3}, then AB because all elements of A are in B. However, AB, so AB (proper subset).


Venn Diagrams

Common Venn Diagram Operations:

Example:
If A={1,2,3} and B={3,4,5}:

Venn diagrams provide an intuitive way to visualize these set operations.

Operations on Sets

Union ( ∪ )

AB={xxA or xB} AB={1,2,3,4,5}

Intersection ( ∩ )

AB={xxA and xB} AB={3}

Difference ( A \ B )

AB={xxA and xB} AB={1,2}

Complement ( A' )

A={xxU and xA} A={3,4,5}

Symmetric Difference

AB=(AB)(BA) AB={1,2,4,5}

Cartesian Product

A×B={(a,b)aA and bB} A×B={(1,x),(1,y),(2,x),(2,y)}

Pairs and Tuples

Example of Pairs and Tuples:

Basic Set Identities

Commutative, Associative, and Distributive Laws

Commutative Laws:

AB=BAAB=BA

Associative Laws:

(AB)C=A(BC)(AB)C=A(BC)

Distributive Laws:

A(BC)=(AB)(AC)A(BC)=(AB)(AC)

De Morgan’s Laws

(AB)=AB(AB)=AB

Example:
If A={1,2,3} and B={3,4,5} with universal set U={1,2,3,4,5,6}, then:


Absorption and Idempotent Laws

Absorption Laws:

A(AB)=AA(AB)=A

Idempotent Laws:

AA=AAA=A

Double Complement Law

(A)=A

Example:
If A={1,2,3} and the universal set U={1,2,3,4,5}, then:


Proofs Using Venn Diagrams and Algebraic Techniques

Proof with Venn Diagrams:

Example: Prove De Morgan’s Law (AB)=AB using a Venn diagram:

  1. Draw two overlapping circles representing sets A and B.
  2. Shade the area outside the union of A and B to represent (AB).
  3. Then, separately shade the intersection of A and B (the regions outside A and B).
  4. You will see that the shaded regions for both expressions are identical, proving the identity.

Proof with Algebraic Techniques:

Example: Prove the absorption law A(AB)=A:

  1. Start with A(AB).
  2. By the distributive law, we have:
A(AB)=(AA)(AB)
  1. By the idempotent law, AA=A, so:
A(AB)=A(AB)
  1. By the absorption law again, A(AB)=A. Therefore:
A(AB)=A

Example of De Morgan’s Law Using Algebraic Techniques:

  1. (AB) means all elements that are not in either A or B.
  2. AB means all elements that are not in A and not in B.
  3. Since both describe the same set (elements not in A or B), they are equal, and thus:
(AB)=AB

Relations

Definitions

Ordered Pairs and Cartesian Products

A×B={(a,b)aA and bB} A×B={(1,x),(1,y),(2,x),(2,y)}

Binary Relations


Properties of Relations

Reflexive Relations

aA,(a,a)R

Symmetric Relations

a,bA,(a,b)R(b,a)R

Antisymmetric Relations

a,bA,(a,b)R and (b,a)Ra=b

Transitive Relations

a,b,cA,(a,b)R and (b,c)R(a,c)R

Equivalence Relations

Equivalence Classes

[a]={bAaRb}

Partition of a Set


Partial and Total Orders

Partial Orders

Total Orders


Hasse Diagrams

Example:
For the set A={1,2,3,4} with the partial order R=≤, the Hasse diagram would look like this: